﻿using System;
using System.IO;
using System.Web.Hosting;

namespace Facebook
{
    public static class FacebookUtility
    {
        public static String MapPath(String path)
        {
            if (HostingEnvironment.IsHosted) return HostingEnvironment.MapPath("~/" + path);
            else return Path.Combine(Environment.CurrentDirectory, path);
        }
    }
}